package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Daily extends BaseDomain {//日报
    public static final int STATE_NORMAL = 0;//状态普通
    public static final int STATE_COMMEND = 1;//状态推荐
    public static final int STATE_HOT = 2;//状态置顶

    private String title; //标题

    private String subTitle;//副标题

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;//创建时间

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date releaseTime;//发布时间

    private String coverUrl;//封面

    private Integer state = STATE_NORMAL;//状态

    private String content;//内容

    private DailyType type;

}